import request from '@/utils/request'


export function page(data) {
  return request({
    url: '/student/likeSearchPage',
    method: 'get',
    // data: data
    params: data
  })
}

export function add(dept) {
  return request({
    url: '/student',
    method: 'post',
    data: dept
  })
}

export function update(dept) {
  return request({
    url: '/student',
    method: 'put',
    data: dept
  })
}

export function deleteById(data) {
  return request({
    url: '/student' ,
    method: 'delete',
    data: data
  })
}

export function selectById(id) {
  return request({
    url: '/student/' + id,
    method: 'get'
  })
}
export function deleteBatch(data) {
  return request({
    url: '/student/batch' ,
    method: 'delete',
    data: data
  })
}

